package com.cloudlead.commonData.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import java.lang.Float;
import javax.validation.constraints.Size;
import org.joda.time.DateTime;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * ETbBookingSpaceOrder is a Querydsl bean type
 */
@Label("订舱单表")
public class ETbBookingSpaceOrder extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13153610431841L;    
    @Label("comments")
    @Size(max=256)
    private String comments;

    @Label("创建时间")
    private DateTime createTime;

    @Label("删除标记")
    @Size(max=45)
    private String flag;

    @Label("货代公司")
    @Size(max=24)
    private String forwardCompanyId;

    @NotNull(groups={UpdateCheck.class})
    @Label("订舱单编号")
    @Size(max=24)
    private String id;

    @Label("订单状态")
    @Size(max=8)
    private String orderStatus;

    @NotNull
    @Label("tbCustomerOrderId")
    @Size(max=24)
    private String tbCustomerOrderId;

    @Label("订舱总价")
    private Float totalPrice;

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public DateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(DateTime createTime) {
        this.createTime = createTime;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getForwardCompanyId() {
        return forwardCompanyId;
    }

    public void setForwardCompanyId(String forwardCompanyId) {
        this.forwardCompanyId = forwardCompanyId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getTbCustomerOrderId() {
        return tbCustomerOrderId;
    }

    public void setTbCustomerOrderId(String tbCustomerOrderId) {
        this.tbCustomerOrderId = tbCustomerOrderId;
    }

    public Float getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Float totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String toString() {
         return String.format("ETbBookingSpaceOrder { comments : %s,createTime : %s,flag : %s,forwardCompanyId : %s,id : %s,orderStatus : %s,tbCustomerOrderId : %s,totalPrice : %s }",comments,createTime,flag,forwardCompanyId,id,orderStatus,tbCustomerOrderId,totalPrice);
    }

}

